<?php
/**
 * Created by PhpStorm.
 * User: alien
 * Date: 2015-07-17-0017
 * Time: 9:17
 */
require_once('config.php');
$sql_array= "SELECT * FROM a-word";
function sql_array(){  //查询数据库，输出数组
   Global $sql_array;  //你懂得
   $result=mysql_fetch_array(mysql_query($sql_array)); //返回数组
    return $result;
}

print_r($sql_array()); //测试代码
?>